import request from '@/utils/request'

// 获取服务信息
export function getServerInfo() {
  return request({
    url: '/monitor/serverInfo',
    method: 'get'
  })
}

export function getRedisInfo() {
  return request({
    url: '/monitor/cacheInfo',
    method: 'get'
  })
}

export function getOnlineInfo() {
  return request({
    url: '/monitor/onlineUser/list',
    method: 'get'
  })
}

export function forceLogout(userName) {
  return request({
    url: `/monitor/forceLogout/${userName}`,
    method: 'delete'
  })
}
